<?php
//рус
include_once (_CORE_PATH . 'request/request_prototype.php');
class request_collection
{
    /**
		список объектов запроса
     */
    static private $_requests = array();

    static public function GetRequest ($protName)
    {
        $requestClassName = 'request_' . $protName;
        
        if (! isset(self::$_requests[$protName]) || ! (self::$_requests[$protName] instanceof $requestClassName)) {
            include_once (_CORE_PATH . 'request/request_' . $protName . '.php');
            self::$_requests[$protName] = new $requestClassName();
        }
        
        return self::$_requests[$protName];
    }
}